//
//  AddressAnnotation.m
//
//  Created by Philipp Kuecuekyan on 8/19/09.
//  Copyright 2009 pxlcoop. All rights reserved.
//

#import "AddressAnnotation.h"

@implementation AddressAnnotation

@synthesize coordinate;

- (NSString *)subtitle{
	if (mSubTitle == nil)
		return @"Sub Title";
	else
		return mSubTitle;
}

- (NSString *)title{
	if (mTitle == nil)
		return @"Title";
	else 
		return mTitle;
}


- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control {
	NSLog(@"in the tap in the addressannotation");
	
	
}
/*
-(id)initWithCoordinate: (CLLocationCoordinate2D) coord andWithText: (NSString *) textLabel andWithSubText: (NSString *) subLabel 
           andWithColor: (int) colorValue {
    coordinate=coord;
    mTitle = textLabel;
    mSubTitle = subLabel;
    color = colorValue;
//    photo = thePhoto;
    return self;
}
*/
/*
-(id)initWithCoordinate: (CLLocationCoordinate2D) coord andWithText: (NSString *) textLabel andWithSubText: (NSString *) subLabel 
           andWithColor: (int) colorValue {
    coordinate=coord;
    mTitle = textLabel;
    mSubTitle = subLabel;
    color = colorValue;
    return self;
}
*/
-(id)initWithCoordinate: (CLLocationCoordinate2D) coord andWithText: (NSString *) textLabel andWithSubtext: (NSString *) subLabel {
	coordinate=coord;
	mTitle = textLabel;
	mSubTitle = subLabel;
	
	return self;
}

-(id)initWithCoordinate: (CLLocationCoordinate2D) coord andWithText: (NSString *) textLabel {
	coordinate=coord;
	mTitle = textLabel;
	return self;
}

-(id)initWithCoordinate: (CLLocationCoordinate2D) coord {
	coordinate=coord;
	return self;
}
/*
-(void)setColor:(int)col
{
    color = col;
}

-(int)getColor
{
    return color;
}

-(void) setPhoto:(Photo*)thePhoto
{
    photo = thePhoto;
}

-(Photo*) getPhoto 
{
    return photo;
}
*/
    

@end
